home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
(A)G
/
(A)G6.ADF
/
nyquil
< prev
next >
Wrap
Text File
|
1988-05-24
|
881b
|
61 lines
equate zero 0
drive wheel 70
cpu 16bit
weapon proton 80 50 \ 80 armor, 50 shots \
reg 10
label begin
posx
# 50
x>y? goto num1
# 180 goto move
label num1 # 0
label move
heading
sto zero \ reg 0 has heading (0 or 180) \
# 15 speed
label here
# 90 radar0
x>0? goto fire \ look for something to kill \
# 1
rcl zero
# 180 / - # 92 * # 4 +
posx - abs # 15 x>y? swap sto 2 speed
# 1 x<y? goto here
label turn
posy # 4 - enter abs sto 8 / # -90 *
heading
rcl 8 speed
# 1
x<y? goto turn
# 0 speed
# 180 rcl 0 - sto 0 heading \ turn around \
# 15 speed
posx posx posx
goto here
label fire
sto 1 \ reg 1 has distance \
# 0 speed
# 1
rcl zero # 90 / - \ if heading 0, gives 1. if heading 180, gives -1. \
rcl 2 # 2.75 / *
rcl 1 / r-d # 90 + aim \ correction to straight up aim \
sto 1
label fire2
fire 0
goto turn